﻿@if (Request.IsAuthenticated)
{
	using (Html.BeginForm("LogOff", "Home", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
	{
	@Html.AntiForgeryToken()

	<ul class="nav navbar-nav navbar-right">
		<li>@Sidvall.SystemContext.Current.PrincipalManager.CurrentPrincipalNameResolved</li>
		<li><a href="javascript:document.getElementById('logoutForm').submit()">Logga ut</a></li>
	</ul>
	}
}
else
{
	<ul class="nav navbar-nav navbar-right">
		<li>@Html.ActionLink("Logga in/Skapa konto", "Login", "Home", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
	</ul>
}
